Refactor attribute methods for simplicity and readability