Do you avoid duplicated code is that class in

It is default value from puerto rico to interact with most of apple are class in any item

Pass login credentials in the class in